package com.kykj.kykjyzw.service;

import com.kykj.kykjyzw.entity.RouteViewEntity;
import com.kykj.kykjyzw.entity.UserRouteEntity;
import com.kykj.kykjyzw.vo.RouteVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RouteService {
    List<RouteViewEntity> getUserRole(String uname);//获取当前用户能访问的所有url
    boolean isRoute(String uname,String URL);//URL是否包含在当前用户的权限中

    int addRoute( RouteVo roureVo);//添加路由
    int updateRoute( RouteVo roureVo);//修改路由
    int delRoute( int menuid);//删除路由
    UserRouteEntity getRouteByMenuId( int menuid);//根据ID获取路由
    List<UserRouteEntity> getRouteList(
            String name,
          String controller,
         int start,int limit
    );//分页查询
    int getRouteCount();//获取路由总数
}
